home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-08-04 | 1.1 KB | 45 lines | [TEXT/MACA] |
- ( Bare Bones )
- ( Strip a copy of Pocket Forth to the bare essential resources )
- : 00>R ( rstack: -- 0 0 ) ,$ 42A7 ; macro ( clr.l -[rs] )
- : R" ( -- d ) ( convert 4 chars to d# )
- 34 word
- here 1+ here 4 cmove
- here 2@ ;
-
- : RGET ( ID type -- dhandle )
- 00>r 2>r >r ,$ A9A0 2r> ( _GetResource )
- ?dup 0= IF ." Resource" abort THEN ;
-
- : RRMVE ( dhandle -- ) ( remove resource at dhandle )
- 2>r ,$ A9AD ;
-
- : HDISP ( dhandle -- ) ( dispose of handle at dhandle )
- ,$ 205E ,$ A023 ;
-
- : RSTRIP ( ID type -- ) ( strip resource )
- rget 2dup rrmve hdisp ;
-
- ( **** WARNING ***** )
- ( The following lines of code permenantly change this )
- ( copy of Pocket Forth. If you do not wish to strip )
- ( all of the non-essential resources from this copy, )
- ( then close this window NOW. If you do, press a key )
- key drop
-
- 257 r" actb" rstrip
- 258 r" actb" rstrip
- 257 r" hdlg" rstrip
- 1 r" hmnu" rstrip
- 2 r" hmnu" rstrip
- 3 r" hmnu" rstrip
- 128 r" hrct" rstrip
- 128 r" hwin" rstrip
- 128 r" icl4" rstrip
- 128 r" icl8" rstrip
- 128 r" ics#" rstrip
- 128 r" ics4" rstrip
- 128 r" ics8" rstrip
- 129 r" PICT" rstrip
- 1 r" STR#" rstrip
-
-